package com.yehongyu.mytools.fileio;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CmdLine {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			String str = "";
			System.out.println("================Welcome to MyWorld,tap \"exit\" will exit program!=============\n");
			while (!str.equals("exit")) {
				System.out.println("please input：");
				str = new BufferedReader(new InputStreamReader(System.in)).readLine().trim();
				if(!(str.equals("exit")||str.equals(""))) System.out.println("you input is:\n" + str);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
